import axiosData from "@/api/axios";
export default {
  /**
   * @description: 查询设备所有关联数据项
   * @param {Number}  page*
   * @param {Number}  size*
   * @param {Object}   entity
   */
  queryPageList(params) {
    return axiosData.post('/v3/equipment-monitor/v1/equDataItem/queryPageList', params);
  },
  /**
   * @description: 查询设备所有关联数据项
   * @param {Number}   equipmentCode
   */
  queryByEquip(params) {
    return axiosData.get(`v3/equipment-monitor/v1/equDataItem/queryDataItem?equipmentCode=${params}`);
  },
  /**
   * @description: 添加一条数据
   * @param {Object}  *
   */
  add(params) {
    return axiosData.post('/v3/equipment-monitor/v1/equDataItem/add', params);
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  delList(params) {
    return axiosData.post('/v3/equipment-monitor/v1/equDataItem/delList', params);
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  edit(params) {
    return axiosData.post('/v3/equipment-monitor/v1/equDataItem/eidt', params);
  }
};
